"pest 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"quick-error 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
- "rustc-serialize 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)",
+ "serde_json 0.9.6 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
git2 = "0.6"
git2-curl = "0.7"
glob = "0.2"
-handlebars = "0.25"
+handlebars = { version = "0.25", features = ["serde_type", "partial4"], default-features = false }
libc = "0.2"
libgit2-sys = "0.6"
log = "0.3"
_: &Handlebars,
rc: &mut RenderContext) -> Result<(), RenderError> {
if let Some(param) = h.param(0) {
- let txt = param.value().as_string().unwrap_or("").to_owned();
+ let txt = param.value().as_str().unwrap_or("").to_owned();
let rendered = format!("{}", toml::Value::String(txt));
try!(rc.writer.write_all(rendered.into_bytes().as_ref()));
}
_: &Handlebars,
rc: &mut RenderContext) -> Result<(), RenderError> {
if let Some(param) = h.param(0) {
- let rendered = html_escape(param.value().as_string().unwrap_or(""));
+ let rendered = html_escape(param.value().as_str().unwrap_or(""));
try!(rc.writer.write_all(rendered.into_bytes().as_ref()));
}
Ok(())